package com.yuw;

public class Student {
    //属性
    /**
     * 学生姓名
     */
    private String stuName;
    /**
     * 学号
     */
    private String stuNum;
    /**
     * 课程
     */
    private String StuCourse;
    /**
     *成绩
     */
    private  double stuScore;

    /**
     * 封装
     */
    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public String getStuNum() {
        return stuNum;
    }

    public void setStuNum(String stuNum) {
        this.stuNum = stuNum;
    }

    public String getStuCourse() {
        return StuCourse;
    }

    public void setStuCourse(String stuCourse) {
        StuCourse = stuCourse;
    }

    public double getStuScore() {
        return stuScore;
    }

    public void setStuScore(double stuScore) {
        this.stuScore = stuScore;
    }

    //行为
    public Student(){}

    public Student(String stuName, String stuNum, String stuCourse, double stuScore) {
        this.stuName = stuName;
        this.stuNum = stuNum;
        StuCourse = stuCourse;
        this.stuScore = stuScore;
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuName='" + stuName + '\'' +
                ", stuNum='" + stuNum + '\'' +
                ", StuCourse='" + StuCourse + '\'' +
                ", stuScore=" + stuScore +
                '}';
    }
}
